package com.icare.shop.server.fallback;

import com.icare.shop.common.base.ResponseResult;
import com.icare.shop.common.constant.GlobalEnum;
import com.icare.shop.server.feign.TradeFeignService;
import com.icare.shop.server.req.SubmitOrderReq;
import com.icare.shop.server.resp.GoodsResp;
import com.icare.shop.server.resp.SubmitOrderResp;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class TradeFallbackService  implements TradeFeignService {
    @Override
    public ResponseResult<SubmitOrderResp> submitOrder(SubmitOrderReq req) {
        log.info("降级调用，提交订单");
        return ResponseResult.faild(GlobalEnum.FAIL);
    }

    @Override
    public ResponseResult<GoodsResp> getShopInfo(Long id) {
        log.info("降级调用，查询商品");
        return ResponseResult.faild(GlobalEnum.FAIL);
    }
}
